import CommonMixin from "./common-mixin";
let _config;
var CommonPageMixin = {
    registerConfig: (config)=>{
        _config = config;
    },
	mixins: [CommonMixin],
	data: function() {
		return {}
	},
	onShow: function() {
		this._refPageShow(`cPage`);
	},
	onHide: function() {
		this._refPageHide(`cPage`);
	},
	onShareAppMessage: function() {
		return {
			title: _config.defaultShareTitle,
			path: _config.defaultSharePagePath
		}
	},
	onShareTimeline: function() {
		return {
			title: _config.defaultShareTitle,
		}
	}
}

module.exports = CommonPageMixin;